package com.lleice.service.qo.sys;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 
 * @author lizihao
 *
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel("新增或修改角色请求数据")
public class RoleReq implements Serializable{/**
	 * 
	 */
	private static final long serialVersionUID = 5669146491773702764L;
	
	@ApiModelProperty(value = "角色id,不为空则是新增")
	private String id;
	
	@NotBlank(message="角色名称不能为空")
	@ApiModelProperty(value = "角色名称")
    private String roleName;
	
	@ApiModelProperty(value = "角色编号")
	private String roleCode;
 
    @ApiModelProperty(value = "0-启用,1-禁用")
    private Integer isEnable;
    
    @ApiModelProperty(value = "排序")
    private Integer sortNum;

}
